# Create your views here.
from datetime import date
from django.http import HttpResponse, HttpResponseNotFound,HttpResponseRedirect
from microblog.polls.models import Poll, Choice
from django.template import Context, loader,RequestContext
from django.shortcuts import get_object_or_404, render_to_response
from django.core.urlresolvers import reverse
from microblog.backend.models import Member
from django.db.models import Q

def index(request):
    return
def BirthNotice(request):
    today = date.today()
        
    nextMonth = date.today()
    user_need_notice = Member.objects.raw("select * from backend_member where strftime('%%j',BirthDay) >= %s" ,[today.strftime("%j")])[:5]#filter(Q(birthday__month=today.month)  | Q(birthday__month=today.month+1))[:5]
    return render_to_response('jobs/job_base.html', {'notice_list' : user_need_notice,})
